package com.snail.snailvr.utils;

import android.view.animation.Animation;
import android.view.animation.OvershootInterpolator;
import android.view.animation.TranslateAnimation;

/**
 * 动画集合
 * Created by snail on 16/6/28.
 */

public class AnimationUtil {
    public static TranslateAnimation getSharkAnimation() {
        TranslateAnimation animation = new TranslateAnimation(0, -10, 0, 0);
        animation.setInterpolator(new OvershootInterpolator());
        animation.setDuration(40);
        animation.setRepeatCount(4);
        animation.setRepeatMode(Animation.REVERSE);
        return animation;
    }

}
